<?php

namespace app\admin\validate;
use think\Validate;

class goodcat extends Validate
{
    protected $rule = [
        'name'        => 'require|unique:good_cate',
    ];

    protected $message = [
        'name.require'   => '分类名称不能为空',
        'name.unique'    => '分类名称已存在',
    ];
}
